/**
 * 
 */
package com.babek.user;

import java.lang.reflect.InvocationTargetException;

import javax.swing.LookAndFeel;
import javax.swing.SwingUtilities;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;
import javax.swing.UIManager.LookAndFeelInfo;
import javax.swing.plaf.metal.MetalLookAndFeel;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author aan
 * 
 */
public class BabekApps {

	public BabekApps() {
		// TODO Auto-generated constructor stub
	}
		
	/**
	 * Auto-generated main 
	 * @throws InvocationTargetException 
	 * @throws InterruptedException 
	 */
	public static void main(String[] args){
		//ApplicationContext ctx=new ClassPathXmlApplicationContext(new String[]{"application-context.xml"});
		
		try {
			UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
			//System.out.println("L&F : "+UIManager.getSystemLookAndFeelClassName()+ " "+UIManager.getCrossPlatformLookAndFeelClassName());
			SwingUtilities.invokeAndWait(new Runnable() {
				
				@Override
				public void run() {
					// TODO Auto-generated method stub
					
					MainFrame mainFrame=new MainFrame();
					 mainFrame.setVisible(true);
					 
					 
					
				}
			});
		} catch (InterruptedException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (InvocationTargetException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (ClassNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (InstantiationException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IllegalAccessException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (UnsupportedLookAndFeelException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	 
		
	}

}
